package com.zx.config.exception;

/**
 * @Description: BaseBusinessException
 * @Author: zhou hang
 * @CreateTime: 2015-07-17 11:20
 */
public class BaseBusinessException extends RuntimeException {
    private static final long serialVersionUID = -6293662498600553602L;
    private String code;
    private String text;

    public BaseBusinessException(String code) {
        this.code = code;
    }

    public BaseBusinessException(String text, String code) {
        this.text = text;
        this.code = code;
    }

    public BaseBusinessException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public BaseBusinessException(String code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public BaseBusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String code, String text) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.text = text;
    }

    public String getCode() {
        return code;
    }

    public String getText() {
        return text;
    }
}